/**
 * @author 
 * @time 
 * @description 封装项目页请求接口
 */
import { PROJECt_LIST_URL, PROJECT_SAVE_URL, PROJECT_UPDATE_URL, PROJECT_DELETE_URL } from '../config/url.config'
import Ajax from './Ajax'

export function projectListApi( params) {
    return Ajax({
        url: PROJECt_LIST_URL,
        method: 'get',
        params
    })
}
export function projectSaveApi(data) {
    return Ajax({
        url: PROJECT_SAVE_URL,
        data
    })
}
export function projectUpdateApi(id) {
    return Ajax({
        url: PROJECT_UPDATE_URL,
        data:{id}
    })
}
export function projectDeleteApi(id) {
    return Ajax({
        url: PROJECT_DELETE_URL+id,
        data: { id }
    })
}
